function retIcon(extName) {
    var iconName = '';
    if (extName == "" || extName == null) {
        iconName = 'wenjianjia1.png';
    } else if (extName == ".docx" || extName == ".doc" || extName == ".DOCX" || extName == ".DOC") {
        iconName = 'word1.png';
    } else if (extName == ".xlsx" || extName == ".xls" || extName == ".XLSX" || extName == ".XLS") {
        iconName = 'excle.png';
    } else if (extName == ".pdf" || extName == ".PDF") {
        iconName = 'pdfwenjian.png';
    } else if (extName == '.mp4' || extName == '.MP4') {
        iconName = 'shipin2.png';
    } else if (extName == '.sql' || extName == '.SQL') {
        iconName = 'shujuku.png';
    }else{
        iconName = 'weizhiwenjian.png';
    }
    return require(`@/assets/icon/icon_picture/${iconName}`);
};

export default retIcon;